<%@ page language="java" contentType="text/html; charset=UTF-8" %>
<%@ include file="/jsplib/pubhead.jsp"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<title>i友邻社区活动_${theForm.title}</title>
	<link href="${cpath}/css/youlin.css" rel="stylesheet" type="text/css" media="all" />
</head>
<body>
<!--外套 start -->
<div class="wrap">
  <!--页首 start -->
	<%@ include file="/menu.jsp"%>
  <!--页首 end -->  
  
  <!--导航面包屑 start -->
  <div class="breadCrumb">
  <div class="breadCrumbNav">当前位置：<a href="${cpath}/users.do?action=main">我的主页</a> >><a href="${cpath}/group_get/groupID_${theForm.qryGroupID}.html">部落</a>>><a href="#">活动</a></div>
	<%@ include file="/navf.jsp"%> 
 </div> 
  <!--导航面包屑 end -->
  
  <!--主体 start -->
 <div class="body">
 
  <div class="hotBox1">  
    <div class="hotBox1-left">
      <a href="${cpath}/group_get/groupID_${theForm.qryGroupID}.html"><img src="${cpath}/${myfn:getGroupPic(theForm.qryGroupID)}"   width="75" height="75"  class="shequ icon user_icon_2"></a>
      <p class="nav"><a href="${cpath}/group_get/groupID_${theForm.qryGroupID}.html">${myfn:getGroupName(theForm.qryGroupID)}</a>&nbsp;&gt;&nbsp;<a href="${cpath}/gparty.do?action=adlist&qryGroupID=${theForm.qryGroupID}">活动区</a>&nbsp;&gt;&nbsp;${theForm.title}</p>
      </div>
    <div class="hotBox1-right">
      <p><a href="javascript:history.go(-1);"><img src="${cpath}/images/icon_32.gif" width="137" height="25" /></a></p>
      <c:if test="${!myfn:bjudgeRange(theForm.endtime) && myfn:groupAddFlag(theForm.qryGroupID,userID) ==  1
	  && theForm.userID != userID}">
      <p><A href="${cpath}/gsignup.do?action=add&partyID=${theForm.partyID}"><img src="${cpath}/images/an01.png" /></A>
	  </p>
	  </c:if>

    </div>
  </div> 
   
  <div class="left-Box6">
  <h3>${theForm.title}	 
  </h3>
  <div class="left-Box6-content">
   <div class="left-Box6-content-inner">
     <div class="left-Box7">
        <p class="left-Box7-top1">活动概况 
		<c:if test="${theForm.userID == userID }"> 
		<A href="${cpath}/gparty.do?action=modifyPage&partyID=${theForm.partyID}">[编辑]</A>
		</c:if>
		</p>
        <div class="left-Box7-content">
          <ul class="left-Box7-ul1">
            <li>发起人： ${myfn:getUserNick(theForm.userID)}</li>            
            <li>费 用： AA</li>
            <li>聚会时间：<span class="color_blue1">${myfn:formatDate14(theForm.bgtime,"-")}</span> 至 <span class="color_blue1">${myfn:formatDate14(theForm.endtime,"-")}</span> </li>            
            <li>报名截止：${myfn:formatDate14(theForm.signEtime,"-")}
			<c:if test="${myfn:getQuot(theForm.signEtime) >  0}">
			&nbsp;&nbsp;<font color=#D4AD7B>还剩${myfn:getQuot(theForm.signEtime)}天</font>
			</c:if>
			</li>
            <li>邀请人数：${theForm.planNum}人</li>            
            <li>报名人数：${theForm.signNum}人</li>
            <li>联系方式：${theForm.tel}</li>            
            <li>活动地址：${theForm.place}</li>
          </ul>
          <div class="clearFloat"></div>
        </div>
        
        <p class="left-Box7-top2">活动介绍</p>
        <div class="left-Box7-content">
		<c:if test="${theForm.smallPic > 0 }"><center><IMG src="${cpath}/${myfn:getPic(theForm.smallPic)}"></center></c:if>
        <font size=6>${theForm.info}</font>
        </div>
        
        <p class="left-Box7-top2">活动提示</p>
        <div class="left-Box7-content">        
        1) 活动人数以现场人数为准</div>
        
		<p class="left-Box7-top2">活动点评</p>
        <div class="left-Box7-content">        
		<c:if test="${myfn:bjudgeRange(theForm.endtime) && addflg == 'yes' }">
		<form action="${cpath}/gdianping.do?action=add" name="theForm"  method="post" class="pic_from">
        <p>
          <a href="javascript:doConfirm('1');" class="btn_up"><img src="${cpath}/images/icon_28.gif" width="14" height="15" />顶(${theForm.upCnt})</a>&nbsp;
          <a href="javascript:doConfirm('2');" class="btn_down"><img src="${cpath}/images/icon_27.gif" width="14" height="15" />踩(${theForm.downCnt})</a>
        </p>
        <div id="dianping" style="display:none">
		<!--<p><textarea class="input" name="dcont" cols="" rows=""></textarea></p>
        <p><a href="javascript:doConfirm();"><img src="${cpath}/images/icon_09.gif" width="83" height="22" /></a></p>-->
		<!--隐藏域-->
		<input type="hidden" name='userID'		value='${userID}'/>
		<input type="hidden" name='groupID'		value='${theForm.qryGroupID}'/>
		<input type="hidden" name='qryGroupID'	value='${theForm.qryGroupID}'/>
		<input type="hidden" name='dtype'		value='1'/>
		<input type="hidden" name='dcont'		value=''/>
		<input type="hidden" name='dsort'		value='3'/>
		<input type="hidden" name='dsortID'		value='${theForm.partyID}'/>
		</div>
		</form> 
		</c:if>
		<!--
        <table class="pic_tbl"width="100%"  align="center" cellpadding="0" cellspacing="0">
		<c:forEach var="dianping" items="${dianpinglist}" varStatus="status"> 
		  <tr>
            <td width="10%" align="center">
			<c:if test="${dianping.dtype == '1'}"> 
			<IMG src="${cpath}/icon/thumb_up.gif"  >顶 </c:if>
			<c:if test="${dianping.dtype == '2'}"> 
			<IMG src="${cpath}/icon/thumb_down.gif" >踩</c:if>			
			</td>
            <td width="53%">${dianping.dcont}</td>
            <td width="16%"><a href="${cpath}/users_home/userID_${dianping.userID}.html"><img src="${cpath}/${myfn:getUserPic(dianping.userID)}" width="29" height="27">${myfn:getUserNick(dianping.userID)}</td>
            <td width="21%" align="center">${myfn:formatDate14(dianping.mtime, "-")}</td>
          </tr>
 		</c:forEach>
        </table>-->		
		<div class="clearFloat"></div>
        </div>
              
        <p class="left-Box7-top2">报名会员<span class="more3"><a href="${cpath}/gsignup.do?action=list&qryPartyID=${theForm.partyID}&qryGroupID=${theForm.qryGroupID}">所有报名会员</a></span></p>
        <div class="left-Box7-content left-Box7-bm">
		<ul>
		<c:forEach var="signup" items="${signuplist}" varStatus="status"> 
        <li>
          <p><a href="${cpath}/users_home/userID_${signup.userID}.html"><img class="user_icon_1" src="${cpath}/${myfn:getUserPic(signup.userID)}" width="51" height="51" /></a></p>
          <p>${myfn:getUserNick(signup.userID)}</p>
        </li>
		</c:forEach>
      </ul>      
        <div class="clearFloat"></div>
        </div>
     </div>
  </div>        
<div class="clearFloat"></div>
  </div>
</div>
  
    <div class="clearFloat"></div>
 </div> 
 <!--主体 end -->
 
 
 <!--页脚 start -->
	<%@ include file="/foot.jsp"%>
 <!--页脚 end --> 
</div>
<!--外套 end -->

</body>
</html>
<SCRIPT>

	function disdp(type)
	{

		document.getElementById('dianping').style.display = "";

		var form = document.theForm;
		form['dcont'].focus();

		var dtype = form['dtype'];
		dtype.value = type;
		var dcont = form['dcont'];

		if(type == "1"){
			dcont.value = "不错！！！！";
		}else{
			dcont.value = "很差！！！！";		
		}
	}

	function doConfirm(dtp)
	{
		var userID = "${userID}";
		if(userID == '' ){
			alert('请登录网站');
			window.location.href ="${cpath}/index.jsp";
			return false;
		}
		var form = document.theForm;

		var dtype = form['dtype'];
		dtype.value = dtp;

		var dcont = form['dcont'];
		if(dtp == "1"){
			dcont.value = "不错！！！！";
		}else{
			dcont.value = "很差！！！！";		
		}	
		
		if(dcont.value == null||dcont.value.replace(/(^\s*)|(\s*$)/g,"").length < 1)
  		{
			alert('内容不能为空');
			dcont.select();
			return ;
		}
		if(dcont.value.replace(/(^\s*)|(\s*$)/g,"").length > 2000)
  		{
			alert('内容长度不能大于200');
			dcont.select();
			return ;
		}

		form.submit();
	}

</SCRIPT>